import request from '@/utils/request'

// 查询微圈列表
export function listMicrocircle(query) {
  return request({
    url: '/system/microcircle/list',
    method: 'get',
    params: query
  })
}

// 查询微圈详细
export function getMicrocircle(id) {
  return request({
    url: '/system/microcircle/' + id,
    method: 'get'
  })
}

// 新增微圈
export function addMicrocircle(data) {
  return request({
    url: '/system/microcircle',
    method: 'post',
    data: data
  })
}

// 修改微圈
export function updateMicrocircle(data) {
  return request({
    url: '/system/microcircle',
    method: 'put',
    data: data
  })
}

// 删除微圈
export function delMicrocircle(id) {
  return request({
    url: '/system/microcircle/' + id,
    method: 'delete'
  })
}
